package com.hotel.tv.web.user;

import com.autumn.swagger.annotation.ApiGroup;
import com.autumn.swagger.annotation.ApiHeaderParameter;
import com.autumn.swagger.annotation.EnableAutumnSwagger;
import com.autumn.web.annotation.EnableAutumnApiResponseBody;
import com.autumn.zero.authorization.annotation.EnableAutumnZeroAuthAuthorizationWeb;
import com.autumn.zero.authorization.annotation.EnableAutumnZeroSmsAuthAuthorizationWeb;
import com.autumn.zero.common.library.web.annotation.EnableAutumnZeroUserCommonLibraryWeb;
import com.autumn.zero.common.library.web.annotation.EnableAutumnZeroUserPersonalLibraryWeb;
import com.hotel.tv.web.AbstractHotelApplication;
import com.hotel.tv.web.configure.EnableWebStartupConfigure;
import com.hotel.tv.web.user.constants.UserWebConstant;

/**
 * Web用户端
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-04-02 20:53
 **/
@EnableWebStartupConfigure
@EnableAutumnApiResponseBody({UserWebConstant.CONTROLLER_PACKAGE_PATH})
@EnableAutumnSwagger(
        title = "珠江数码智能平台-用户端 API 文档",
        description = "",
        authorName = "珠江数码",
        authorUrl = "www.hotel.com",
        authorEmail = "",
        enableAuthorize = false,
        headerParameters = {
                @ApiHeaderParameter(name = "token", description = "token"),
                @ApiHeaderParameter(name = "deviceId", description = "设备id")
        },
        groups = {
                @ApiGroup(groupName = "所有", packages = UserWebConstant.CONTROLLER_PACKAGE_PATH)
        }
)
@EnableAutumnZeroUserCommonLibraryWeb   //客户端公共库
@EnableAutumnZeroUserPersonalLibraryWeb //个人收货地址与发票信息
@EnableAutumnZeroAuthAuthorizationWeb     //基本登录 用户名密码登录、注销
@EnableAutumnZeroSmsAuthAuthorizationWeb  //短信登录 提供短信登录
//@EnableAutumnZeroWeChatAuthorizationWeb  //微信app登录(支持小程序、公众号等，暂不支持web扫码)
public class ApplicationUserStartup extends AbstractHotelApplication {

    /**
     * @param args
     */
    public static void main(String[] args) {
        run(ApplicationUserStartup.class, args);
    }
}
